package com.github.cyf.service;

import com.github.cyf.domain.po.Emp;
import com.github.cyf.domain.po.Employee;
import com.github.cyf.mapper.db1.EmpMapper;
import com.github.cyf.mapper.db2.EmployeeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenyifan
 * @create 2024-03-13 10:56
 */
@Service
public class EmpService {

    private final EmpMapper empMapper;
    private final EmployeeMapper employeeMapper;

    public EmpService(EmpMapper empMapper, EmployeeMapper employeeMapper) {
        this.empMapper = empMapper;
        this.employeeMapper = employeeMapper;
    }

    public void select() {
        List<Employee> employeeList = employeeMapper.selectList();
        List<Emp> empList = empMapper.selectList();
        System.out.println(employeeList);
        System.out.println(empList);
    }
}
